xen/arm: Move p2m_vmid_allocator_init() inside setup_virt_paging()
authorBhupinder Thakur <bhupinder.thakur@linaro.org>
Fri, 16 Dec 2016 07:16:27 +0000 (12:46 +0530)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 16 Dec 2016 18:42:11 +0000 (10:42 -0800)
commit3ca8573f8b81b2ff8d14c0fb29260420f868ab7a
tree88607fe742cb294c2645fc3876eb31ceb64e38fb
parent08ccb46924385c833bd0da9e087fb6b96fa76849
xen/arm: Move p2m_vmid_allocator_init() inside setup_virt_paging()

Since VMIDs are related to 2nd stage address translation, it makes more sense
to move the call to p2m_vmid_allocator_init(), which initializes the vmid
allocation bitmap, inside setup_virt_paging(), where 2nd stage address translation
is set up.

Signed-off-by: Bhupinder Thakur <bhupinder.thakur@linaro.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/p2m.c
xen/arch/arm/setup.c
xen/include/asm-arm/p2m.h